<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of model_smiley
 *
 * @author b4by
 */
class model_smiley extends MY_Model{
	var $table='smiley';
	public function get_list($input = array()) {
		$CI = &get_instance();
		$CI->load->driver('cache');
		if(!$result = $CI->cache->file->get('smilies'))
		{
			$result = parent::get_list($input);
			$CI->cache->file->save('smilies',$result,60*60*24*30);
		}
		return $result;
	}
}

?>
